package com.jic.market.api.rest;

import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.market.request.rest.promotion.PromotionInfoRestRequest;
import com.jic.market.response.rest.promotion.PromotionDetailRestResponse;
import com.jic.market.response.rest.promotion.PromotionGoodsSpuRestResponse;
import com.jic.market.response.rest.promotion.PromotionInfoRestResponse;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;


/**
 * description: PromotionRestApi
 * date: 2020/4/8 10:11
 * author: wangys
 * version: 1.0
 */
public interface PromotionRestApi {

    RestResult<List<PromotionInfoRestResponse>> getPromotinInfos(@RequestBody PromotionInfoRestRequest request);

    RestResult<PromotionInfoRestResponse> getPromotinInfo(PromotionInfoRestRequest request);

    RestResult<PromotionDetailRestResponse> promotionDetail(PromotionInfoRestRequest request);

    RestResult<PageResult<PromotionGoodsSpuRestResponse>> getGoodsByPromotionCode(PromotionInfoRestRequest request);
}
